import axios from "axios"
var baseURL = "http://47.108.197.28"
function http({
    method,
    url,
    data
}) {
    console.log("api:"+baseURL + url);
    return new Promise((resolve, reject) => {
        axios({
            method,
            url: baseURL + url,
            data
        }).then((response) => {
            resolve(response);
        }).catch((error) => {
            reject(error);
        });
    })
}
export default http;